package com.wm.homework03;

import java.util.Scanner;

public class Text {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.print("请输入第一个数:");
        double fristNum = in.nextDouble();
        System.out.print("请输入第二个数:");
        double secondNum = in.nextDouble();
        Calculator calculator = new Sum(fristNum,secondNum);
        calculator.calculate();
        Calculator calcu = new Minus(fristNum,secondNum);
        calcu.calculate();
        Calculator ca = new Multiply(fristNum,secondNum);
        ca.calculate();
        Calculator c = new Divide(fristNum,secondNum);
        c.calculate();
    }
}
